package com.qianxun.module.base.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 菜单树
 * @author: huwei
 * @date: 2019/11/15 10:06
 * @version: 1.0.0
 */
@Data
@Accessors(chain = true)
public class MenuTreeVo {

    private Long id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 请求地址
     */
    private String url;

    /**
     * 图标地址
     */
    private String icon;

    /**
     * 展示方式
     */
    private String showMode;

    /**
     * 子节点
     */
    private List<MenuTreeVo> children;

    public MenuTreeVo(Long id, String name, String url, String icon ,String showMode) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.icon = icon;
        this.showMode = showMode;
    }
}
